/*
 * ConstantesGenerales.java
 *
 * Created on August 13, 2007, 6:23 PM
 *
 * To change this template, choose Tools | Options and locate the template under
 * the Source Creation and Management node. Right-click the template and choose
 * Open. You can then make changes to the template in the Source Editor.
 */

package com.computec.manualesweb.constantes;

import com.computec.manualesweb.source.ManualesWebSource;

/**
 *
 * @author FSanchez
 */
public class ConstantesGenerales {
    protected static ConstantesGenerales instance;
     
    public static String FACTORYDAO_CLASSNAME;
    public static String SCHEMA;
    public static String FILE_ORIGEN_MANUAL_VIA_WEB;
    public static String ID_VERSION_CLIENTE;
    public static String ID_VERSION_COMPUTEC;
    public static String ID_VERSION_EMENSAJERIA;
    public static String USUARIO_COMPUTEC;
    
    
    /** Creates a new instance of ConstantesGenerales */
    public ConstantesGenerales() {
	ManualesWebSource manualesWebSource=ManualesWebSource.getInstance();
	
	this.FACTORYDAO_CLASSNAME       = manualesWebSource.getManualesWebSetupKey("DaoFactoryClassName");  
        this.SCHEMA                     = manualesWebSource.getManualesWebSetupKey("schema");  
	this.FILE_ORIGEN_MANUAL_VIA_WEB	= manualesWebSource.getManualesWebSetupKey("fileOrigenManualWeb");  
	this.ID_VERSION_CLIENTE		= manualesWebSource.getManualesWebSetupKey("idVersionCliente");  
	this.ID_VERSION_COMPUTEC	= manualesWebSource.getManualesWebSetupKey("idVersionComputec");  
	this.ID_VERSION_EMENSAJERIA	= manualesWebSource.getManualesWebSetupKey("idVersionEM");  
	this.USUARIO_COMPUTEC		= manualesWebSource.getManualesWebSetupKey("usuarioComputec");  
    }
    
    public static ConstantesGenerales getInstance() {
        if (instance == null) {
            instance = new ConstantesGenerales();
        }
        return instance;
    }
}
